<template>
  <div style="padding:30px; width:50%; margin:0 auto">
    <el-form ref="form" :model="form" label-width="80px" label-position="left">
      <el-form-item label="物资名称">
        <el-select v-model="form.name" placeholder="请选择物资名称">
          <el-option label="物资名称1" value="shanghai"></el-option>
          <el-option label="物资名称2" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="生产厂家">长春玻璃杯厂</el-form-item>
      <el-form-item label="单价">
        <el-input v-model="form.name">
          <template slot="append">元</template>
        </el-input>
      </el-form-item>
      <el-form-item label="部门名称">
        <el-select v-model="form.name" placeholder="请选择物资名称">
          <el-option label="物资名称1" value="shanghai"></el-option>
          <el-option label="物资名称2" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="报损数量">
        <el-input v-model="form.name">
          <template slot="append">个</template>
        </el-input>
      </el-form-item>
      <el-form-item label="负责人">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="合计金额">
        <el-input v-model="form.name">
          <template slot="append">元</template>
        </el-input>
      </el-form-item>
      <el-form-item label="操作员">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="破损原因">
        <el-input type="textarea" v-model="form.desc"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
        <el-button>重置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      }
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    }
  }
};
</script>